//--------------------客户端---------
import Vue from 'vue'
import Router from 'vue-router'


import MyBusiness from './../pages/MyBusiness'
import BusinessDetail from './../pages/BusinessDetail'

import Result from './../pages/Result'
import News from './../pages/News'
import NewDetail from './../pages/NewDetail'
import userLogin from './../pages/userLogin'


//--------------------经理端---------
import ManagerHomePage from './../ManagerPage/ManagerHomePage'
import DataMsg from './../ManagerPage/DataMsg'
import Workbench from './../ManagerPage/Workbench'
import HotEventManagement from './../ManagerPage/HotEventManagement'
import login from './../ManagerPage/login'
import ManagerMine from './../ManagerPage/ManagerMine'
import ManagerBusiness from './../ManagerPage/ManagerBusiness'
import ManagerBusDetail from './../ManagerPage/ManagerBusDetail'
import wechatLogin from './../ManagerPage/wechatLogin'
import ExperienceList from './../ManagerPage/ExperienceList'
import SelectedProducts from './../pages/SelectedProducts'
import ProductDetail from './../pages/ProductDetail'
import SubProduct from './../pages/SubProduct'
import ManagerInfo from './../ManagerPage/ManagerInfo'
import WebLink from './../ManagerPage/WebLink'


Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'wechatLogin',
      redirect:'wechatLogin' 
    },

    {
      path:'/ManagerInfo',
      name:'ManagerInfo',
      component:ManagerInfo,
    },
    {
      path:'/MyBusiness',
      name:'MyBusiness',
      component:MyBusiness,
    },
    {
      path:'/BusinessDetail',
      name:'BusinessDetail',
      component:BusinessDetail,
    },
    {
      path:'/SelectedProducts',
      name:'SelectedProducts',
      component:SelectedProducts,
    },
    {
      path:'/ProductDetail',
      name:'ProductDetail',
      component:ProductDetail,
      meta: {
        keepAlive: true,
      }
    },
    {
      path:'/SubProduct',
      name:'SubProduct',
      component:SubProduct,
    },
    {
      path:'/Result',
      name:'Result',
      component:Result,
    },
    {
      path:'/News',
      name:'News',
      component:News,
      meta: {
        keepAlive: true,
      }
    },
    {
      path:'/NewDetail',
      name:'NewDetail',
      component:NewDetail,
    },
    
    
    // ------------经理后台管理页面-------------------------
    {
      path:'/ManagerHomePage',
      name:'ManagerHomePage',
      component:ManagerHomePage,
    },
    {
      path:'/DataMsg',
      name:'DataMsg',
      component:DataMsg,
      meta: {
        keepAlive: true,
      }
    },
    
    {
      path:'/Workbench',
      name:'Workbench',
      component:Workbench,
    },
    {
      path:'/HotEventManagement',
      name:'HotEventManagement',
      component:HotEventManagement,
    },
    {
      path:'/login',
      name:'login',
      component:login,
    },
    {
      path:'/ManagerMine',
      name:'ManagerMine',
      component:ManagerMine,
    },
    {
      path:'/ManagerBusiness',
      name:'ManagerBusiness',
      component:ManagerBusiness,
    },
    {
      path:'/ManagerBusDetail',
      name:'ManagerBusDetail',
      component:ManagerBusDetail,
    },
    {
      path:'/wechatLogin',
      name:'wechatLogin',
      component:wechatLogin,
    },
    {
      path:'/ExperienceList',
      name:'ExperienceList',
      component:ExperienceList,
    },
    {
      path:'/WebLink',
      name:'WebLink',
      component:WebLink,
      
    }
  ],



  



  linkActiveClass: 'active'  
  
})
